#!/bin/bash
scp -r D:\space\golang\study root@192.168.62.128:/home/bing/studypath/code/ &&
cp -r /home/bing/studypath/code/study/config /home/bing/studypath/config &&
cd /home/bing/studypath/code/study &&
go build -o study-latest &&
pkill -f study &&
cp /home/bing/studypath/code/study/study-latest /home/bing/studypath/study &&
nohup /home/bing/studypath/study &